<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnIsTerminateInReviewRequestNodeTable extends AbstractMigration
{
    public function up()
    {
        $this->table('review_request_node')
            ->addColumn('is_terminate', 'enum', [
                'values' => 'yes,no',
                'default' => 'no',
                'null' => false,
                'comment' => '是否提前终止',
            ])->save();
    }

    public function down()
    {
        $this->table('review_request_node')->removeColumn('is_terminate')->save();
    }
}
